<template>
	<view class="page-box">
		<h1>账号密码登录</h1>
		<u-form label-width="130rpx">
			<u-form-item label="账号">
				<u-input v-model="userName" />
			</u-form-item>
			<u-form-item label="密码">
				<u-input v-model="password" />
			</u-form-item>
			<u-button type="primary" @click="userNameLogin">账号登录</u-button>
		</u-form>
		<br />
<!-- 		<u-form>
			<h1>微信授权登录</h1>
			<u-button type="primary" @click="wxLogin">微信授权登录</u-button>
		</u-form>
		<br /> -->

		<!-- <u-form label-width="130rpx">
			<h1>手机短信验证登录</h1>
			<u-form-item label="手机号码">
				<u-input v-model="phone" />
			</u-form-item>
			<u-form-item label="验证码">
				<u-input v-model="code" />
			</u-form-item>
			<u-button type="primary" @click="phoneLogin">手机短信验证登录</u-button>
		</u-form> -->
		<br />

	</view>
</template>

<script>
	export default {
		data() {
			return {
				userName: '',
				password: '',
				phone: '',
				code: '',
			}
		},
		methods: {
			userNameLogin() {
              uni.switchTab({
              	url:'/pages/me/me'
              })
			},
			wxLogin() {

			},
			phoneLogin() {

			}
		}
	}
</script>

<style>
	.page-box {
		padding: 20rpx
	}
</style>
